<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="/Public/static/css/style.css">
    <script src="http://libs.baidu.com/jquery/2.1.1/jquery.min.js"></script>
    <script>

        $(function () {


            $.post("<?=U('myFuns')?>",{id:20},function (data) {

//                alert(data);
            });
        })


    </script>
</head>
<body>



<?php if(is_array($data)): foreach($data as $key=>$v): echo ($v['id']); ?> : <?php echo ($v['name']); ?><br><?php endforeach; endif; ?>

<hr/>

<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i; echo ($v['id']); ?>  :  <?php echo ($v['name']); ?><br><?php endforeach; endif; else: echo "" ;endif; ?>


</body>
</html>